Page({
  data: {
    arr:[1,2,3,4]
  },
  changeArr(event){
    //动态下标的数组
    let index = event.target.dataset.index
    this.data.arr[index] = 100
    this.setData({
      arr:this.data.arr
    })
  }
});
